﻿using FluentNHibernate.Mapping;
using Thaire.Investment.Domains.Master;

namespace Thaire.Investment.Repository.Mapping
{
    class MarkMarketMap : ClassMap<MarkMarket>
    {
        public MarkMarketMap()
        {
            Table("MARK_MARKET");
            Id(x => x.MarkMarketId, "MARK_MARKET_ID").GeneratedBy.Identity();
            Map(x => x.MarkMarketBond, "MARK_MARKET_BOND");
            Map(x => x.MarkMarketCoupon, "MARK_MARKET_COUPON");
            Map(x => x.MarkMarketMaturity, "MARK_MARKET_MATURITY");
            Map(x => x.MarkMarketTtm, "MARK_MARKET_TTM");
            Map(x => x.MarkMarketType, "MARK_MARKET_TYPE");
            Map(x => x.MarkMarketCouponType, "MARK_MARKET_COUPON_TYPE");
            Map(x => x.MarkMarketTris, "MARK_MARKET_TRIS");
            Map(x => x.MarkMarketFitch, "MARK_MARKET_FITCH");
            Map(x => x.MarkMarketLastTradeDate, "MARK_MARKET_LAST_TRADE_DATE");
            Map(x => x.MarkMarketLastExecYield, "MARK_MARKET_LAST_EXEC_YIELD");
            Map(x => x.MarkMarketQuotedDate, "MARK_MARKET_QUOTED_DATE");
            Map(x => x.MarkMarketQuotedYield, "MARK_MARKET_QUOTED_YIELD");
            Map(x => x.MarkMarketMax, "MARK_MARKET_MAX");
            Map(x => x.MarkMarketMin, "MARK_MARKET_MIN");
            Map(x => x.MarkMarketModelYield, "MARK_MARKET_MODEL_YIELD");
            Map(x => x.MarkMarketStatic, "MARK_MARKET_STATIC");
            Map(x => x.MarkMarketMarketYield, "MARK_MARKET_MARKET_YIELD");
            Map(x => x.MarkMarketDm, "MARK_MARKET_DM");
            Map(x => x.MarkMarketCleanprice, "MARK_MARKET_CLEANPRICE");
            Map(x => x.MarkMarketAiPercent, "MARK_MARKET_AI_PERCENT");
            Map(x => x.MarkMarketModifiedDuration, "MARK_MARKET_MODIFIED_DURATION");
            Map(x => x.MarkMarketConvexity, "MARK_MARKET_CONVEXITY");
            Map(x => x.MarkMarketPar, "MARK_MARKET_PAR");
            Map(x => x.MarkMarketCurrency, "MARK_MARKET_CURRENCY");
            Map(x => x.MarkMarketRegistration, "MARK_MARKET_REGISTRATION");
            Map(x => x.MarkMarketIndexRatio, "MARK_MARKET_INDEX_RATIO");
        }
    }
}
